<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>

          <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side" id="mainbody">
                <!-- Content Header (Page header) -->
              
  						<section class="content-header">
                    <h1><i class="fa <?php echo $CAT['caticon'];?>"></i> <?php echo $CAT['catname'];?></h1>
                   <!--<?php echo var_dump($CAT);?>-->
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active"><i class="fa <?php echo $CAT['caticon'];?>"></i> <a href="<?php echo $CAT['url'];?>"><?php echo $CAT['catname'];?></a>  > 列表</li>
                    </ol>
                </section>
                <!-- Main content -->
                <section class="content">
                	<div class="col-md-3">
										<div class="panel panel-default">
											<div class="panel-heading">
												
												<h3 class="panel-title"><i class="fa fa-search"></i> 搜索条件</h3>
											</div>
											<div class="panel-body">
												<div class="input-group">
													<input type="text" class="form-control">
													<span class="input-group-addon"><i class="fa fa-search"></i></span>
												</div>
										
											<?php $n=1;if(is_array($typee)) foreach($typee AS $t) { ?>
												<div class="form-group">

													<label><?php echo $t['name'];?></label>
													<select class="form-control">
														<option value=''></option>
														<?php $n=1;if(is_array($t['item'])) foreach($t['item'] AS $e) { ?>													
														<option value='<?php echo $e['id'];?>'><?php echo $e['itemtxt'];?></option>
														 <?php $n++;}unset($n); ?>
													</select>
												</div>
											  <?php $n++;}unset($n); ?>

											</div>
										</div>
                	</div>
                	<div class="col-md-9">
                		
                		
                	<div class="panel panel-default">
              <div class="panel-heading"><i class="fa <?php echo $CAT['caticon'];?>"></i>  <?php echo $CAT['catname'];?>--文件列表</div>
              <table class="table table-striped table-hover">
                <thead>
                  <tr>
                    
                    <th>文件名</th>
                    <th>图片文件</th>
                    <th>PDF文件</th>
                    <th style="text-align: right;">发布日期</th>
                  </tr>
                </thead>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=cc235d4446ed43e81f4e339e6ea5f7b3&action=lists&catid=%24catid&num=999&order=id+DESC&page=%24page&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 999;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','moreinfo'=>'1','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
              
                <tbody>
                	      <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                  <tr>
              
                    <td><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></td>
                    <td><?php echo count(string2array($r[pdf]));?></td>
                    <td><?php echo count(string2array($r['pics']));?></td>
                    <td style="text-align: right;"><?php echo date('Y-m-d H:i:s',$r[inputtime]);?></td>
                      
                  </tr>  
                    <?php $n++;}unset($n); ?>
                </tbody>
                 <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <!--<tfooter>
                	点击文件名即可进入文件内容。
                </tfooter>-->
              </table>
            </div>	

                	</div>
								<!--<div class="row">
										<div class="col-md-5">
											<div class="input-group">
                        <input type="text" class="form-control">
                        <span class="input-group-addon"><i class="fa fa-check"></i></span>
                      </div>
										</div>
											<div class="col-md-7">
											<div class="form-group col-md-2">
                                            <label>下拉选框</label>
                                            <select class="form-control">
                                                <option>option 1</option>
                                                <option>option 2</option>
                                                <option>option 3</option>
                                                <option>option 4</option>
                                                <option>option 5</option>
                                            </select>
                                        </div>
                                        <div class="form-group col-md-2">
                                            <label>下拉选框</label>
                                            <select class="form-control">
                                                <option>option 1</option>
                                                <option>option 2</option>
                                                <option>option 3</option>
                                                <option>option 4</option>
                                                <option>option 5</option>
                                            </select>
                                        </div>
                                          <div class="form-group col-md-2">
                                            <label>下拉选框</label>
                                            <select class="form-control">
                                                <option>option 1</option>
                                                <option>option 2</option>
                                                <option>option 3</option>
                                                <option>option 4</option>
                                                <option>option 5</option>
                                            </select>
                                        </div>
                                   
										</div>
										
										
									
								</div>-->
          
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->


    </body>
</html>